import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            component: resolve => require(['../pages/Login.vue'], resolve)
        },
        {
            path: '/Home',
            component: resolve => require(['../components/Home.vue'], resolve),
            children: [
                {
                    path: '/Info',
                    component: resolve => require(['../pages/InfoPage.vue'], resolve)
                },
                {
                    path: '/Consumer',
                    component: resolve => require(['../pages/ConsumerPage.vue'], resolve)
                },
                {
                    path: '/Singer',
                    component: resolve => require(['../pages/SingerPage.vue'], resolve)
                },
                {
                    path: '/SongList',
                    component: resolve => require(['../pages/SongListPage.vue'], resolve)
                },
                {
                    path: '/Song',
                    component: resolve => require(['../pages/SongPage.vue'], resolve)
                },
                {
                    path: '/Comment',
                    component: resolve => require(['../pages/CommentPage.vue'], resolve)
                },
                {
                    path: '/Content',
                    component: resolve => require(['../pages/ContentPage.vue'], resolve)
                },
                {
                    path: '/LoveSong',
                    component: resolve => require(['../pages/LoveSongPage.vue'], resolve)
                },
                {
                    path: '/CollectSongList',
                    component: resolve => require(['../pages/CollectSongListPage.vue'], resolve)
                },
                {
                    path: '/Video',
                    component: resolve => require(['../pages/VideoPage.vue'], resolve)
                },
                {
                    path: '/FollowSinger',
                    component: resolve => require(['../pages/FollowSinger.vue'], resolve)
                },
            ]
        },

    ]
})